import { createApp } from 'vue';
import App from './App.vue';

// router
import Router from './global-router/index';

// Store
import PiniaStore from './global-store/index';

import CustomPlugins from './plugins.conf';

import CustomDirectives from './global-directives/index';

// 样式
import './global-styles/index.less';

// 路由拦截
import './global-router/route-before-each';

const app = createApp(App);

// 去掉Vue warn警告
app.config.warnHandler = (): any => null;

app.use(Router).use(PiniaStore).use(CustomPlugins).use(CustomDirectives).mount('#app');
